#ifndef PRELISTITEM_H
#define PRELISTITEM_H


#include <QListWidgetItem>
#include <QString>

// class PreListItem : public QListWidgetItem // error C2039: qt_metacast不是QListWidgetItem的成员
class PreListItem : public QListWidget, public QListWidgetItem // no error
{
    Q_OBJECT
public:
    PreListItem(const QIcon& icon, const QString& text, const int& index, QListWidget *listview = nullptr, int type = Type);

    int GetIndex();
    QString GetPath();

private:
    QString _path;
    int _index;

signals:
};

#endif // PRELISTITEM_H
